package com.rest.entity;

import java.math.BigDecimal;

public class Recipe {
    private Integer recipe_id;
    private String recipe_name;
    private String category;
    private byte[] image;
    private String unit;
    private BigDecimal unit_price;  // 使用 BigDecimal 来表示价格
    private String cooking_instructions;
    private Boolean is_active;  // 使用 Boolean 类型来表示是否有效

    public Recipe(Integer recipe_id, String recipe_name, String category, byte[] image, String unit, BigDecimal unit_price, String cooking_instructions, Boolean is_active) {
        this.recipe_id = recipe_id;
        this.recipe_name = recipe_name;
        this.category = category;
        this.image = image;
        this.unit = unit;
        this.unit_price = unit_price;
        this.cooking_instructions = cooking_instructions;
        this.is_active = is_active;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getRecipe_id() {
        return recipe_id;
    }

    public void setRecipe_id(Integer recipe_id) {
        this.recipe_id = recipe_id;
    }

    public String getRecipe_name() {
        return recipe_name;
    }

    public void setRecipe_name(String recipe_name) {
        this.recipe_name = recipe_name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public byte[] getImage() {
        return image;
    }

    public void setImage(byte[] image) {
        this.image = image;
    }

    public BigDecimal getUnit_price() {
        return unit_price;
    }

    public void setUnit_price(BigDecimal unit_price) {
        this.unit_price = unit_price;
    }

    public String getCooking_instructions() {
        return cooking_instructions;
    }

    public void setCooking_instructions(String cooking_instructions) {
        this.cooking_instructions = cooking_instructions;
    }

    public Boolean getIs_active() {
        return is_active;
    }

    public void setIs_active(Boolean is_active) {
        this.is_active = is_active;
    }



}
